---
layout: default
title: Notes
---


<div class="posts">
	<!-- 遍历分页后的文章 -->
    {% for post in paginator.posts %}
    <div class="post-list">
      <div class="post-list-date"><small>{{ post.date | date: "%b %d, %Y" }}</small></div>
	    <div class="text-truncate"><a href="{{ post.url | prepend: site.baseurl | replace: '//', '/'}}">{{ post.title }}</a></div>
      <div class="post-list-desc">{{ post.description }}</div>
    </div>
    {% endfor %}   
 </div>
    

{% if paginator.total_pages > 1 %}
<div class="pagination">
  {% if paginator.previous_page %}
    <a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">上一页</a>
  {% endif %}

  {% for page in (1..paginator.total_pages) %}
    {% if page == paginator.page %}
      <span class="page_curr">{{ page }}</span>
    {% elsif page == 1 %}
      <a href="{{ '/java/index.html' | prepend: site.baseurl | replace: '//', '/' }}">{{ page }}</a>
    {% else %}
      <a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
    {% endif %}
  {% endfor %}

  {% if paginator.next_page %}
    <a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">下一页</a>
 
  {% endif %}
</div>
{% endif %}


<!--<div class="posts">
  <h2>My Recent Notes</h2>
  {% for post in site.posts limit:5 %}
    <div class="post-list">
      <div class="post-list-date"><small>{{ post.date | date: "%b %d, %Y" }}</small></div>
	    <div class="text-truncate"><a href="{{ post.url }}">{{ post.title }}</a></div>
      <div class="post-list-desc">{{ post.description }}</div>
    </div>
  {% endfor %}
  <a class="more-notes" href="/notes.html">more notes</a> <a class="more-notes" href="/archives.html">archives by years</a>
</div>-->